<%@ page import="com.ant.myagile.Team" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="layout" content="mainlayout"/>
<g:set var="entityName" value="${message(code: 'team.label', default: 'Team')}" />
		<title><g:message code="default.edit.label" args="[entityName]" /></title>
</head>
<body>
  <div class="main-form">
  	<h1 style="color: blue;">EDIT TEAM</h1>
<%--			<g:if test="${flash.message}">--%>
<%--			<div class="message" role="status">${flash.message}</div>--%>
<%--			</g:if>--%>
		<g:hasErrors bean="${team}">
			<ul class="errors" role="alert">
				<g:eachError bean="${team}" var="error">
				<li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
				</g:eachError>
			</ul>
		</g:hasErrors>
		<div class="">
		<g:form method="post" enctype="multipart/form-data" >
				<g:textField name="teamId" value="${team?.id}" />				
				<fieldset>
					<g:render template="form"/>
				</fieldset>
				<fieldset class = "info" style="text-align: center">
					<g:actionSubmit class="save btn btn-info" action="updateTeam" value="${message(code: 'default.button.update.label', default: 'Update')}" />
					<g:actionSubmit class="delete btn btn-info" action="deleteTeam" value="${message(code: 'default.button.delete.label', default: 'Delete')}" formnovalidate="" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
  </div>
</body>
</html>